package io.aicn.lowcode.generator.model;

import lombok.Data;

import java.util.List;

@Data
public class TableInfo {
    private String tableName;
    private String tableComment;
    private String schemaName;
    private List<ColumnInfo> columns;
    private ColumnInfo primaryKey;
    
    // 手动添加getter方法以解决编译问题
    public List<ColumnInfo> getColumns() {
        return columns;
    }
    
    public String getName() {
        return tableName;
    }
    
    public void setColumns(List<ColumnInfo> columns) {
        this.columns = columns;
    }
    
    public void setTableName(String tableName) {
        this.tableName = tableName;
    }
    
    public void setTableComment(String tableComment) {
        this.tableComment = tableComment;
    }

    public String getTableName() {
        return tableName;
    }

    public String getTableComment() {
        return tableComment;
    }

    public String getSchemaName() {
        return schemaName;
    }

    public void setSchemaName(String schemaName) {
        this.schemaName = schemaName;
    }

    public ColumnInfo getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(ColumnInfo primaryKey) {
        this.primaryKey = primaryKey;
    }
}